package com.snowher.play.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Lychee on 2018/9/6 16:52.
 * <p>
 * Author:Hejingzhou
 * <p>
 * Email:tcowork@163.com
 *
 * @author HeJingzhou
 */
@RequestMapping(value = "/Test")
@Controller
public class TestController {

    private final Logger mLogger;

    public TestController() {
        mLogger = Logger.getLogger(TestController.class);
    }

    @RequestMapping(value = "/say")
    public String printTest(@RequestParam(value = "name") String sayValue) {
        mLogger.info("获取请求的参数" + sayValue);
        System.out.println(sayValue);
        return "hello";
    }
}
